package com.example.superoa.model.pojos;

import java.io.Serializable;
import javax.persistence.*;
import java.util.Date;


/**
 * The persistent class for the rank_approval database table.
 * 
 */
@Entity
@Table(name="rank_approval")
@NamedQuery(name="RankApproval.findAll", query="SELECT r FROM RankApproval r")
public class RankApproval implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private int rank_id;

	private String rank_quxiang;

	private String rank_shpiresult;

	@Temporal(TemporalType.DATE)
	private Date rank_date;
	
	@Temporal(TemporalType.DATE)
	private Date salarydate;
	
	@Temporal(TemporalType.DATE)
	private Date endworkdate;
	
	@Temporal(TemporalType.DATE)
	private Date rank_shpidate;

	private String rank_Reason;
	
	private String rank_bohui;

	private Integer rank_shpiren;

	//bi-directional many-to-one association to Staff
	@ManyToOne
	@JoinColumn(name="staff_id")
	private Staff staff;

	public RankApproval() {
	}

	public int getRank_id() {
		return this.rank_id;
	}

	public void setRank_id(int rank_id) {
		this.rank_id = rank_id;
	}

	

	public String getRank_quxiang() {
		return rank_quxiang;
	}

	public void setRank_quxiang(String rank_quxiang) {
		this.rank_quxiang = rank_quxiang;
	}

	public String getRank_shpiresult() {
		return rank_shpiresult;
	}

	public void setRank_shpiresult(String rank_shpiresult) {
		this.rank_shpiresult = rank_shpiresult;
	}

	public Date getRank_date() {
		return rank_date;
	}

	public void setRank_date(Date rank_date) {
		this.rank_date = rank_date;
	}

	public Date getSalarydate() {
		return salarydate;
	}

	public void setSalarydate(Date salarydate) {
		this.salarydate = salarydate;
	}

	public Date getEndworkdate() {
		return endworkdate;
	}

	public void setEndworkdate(Date endworkdate) {
		this.endworkdate = endworkdate;
	}

	public Date getRank_shpidate() {
		return rank_shpidate;
	}

	public void setRank_shpidate(Date rank_shpidate) {
		this.rank_shpidate = rank_shpidate;
	}

	public String getRank_Reason() {
		return rank_Reason;
	}

	public void setRank_Reason(String rank_Reason) {
		this.rank_Reason = rank_Reason;
	}

	public Integer getRank_shpiren() {
		return rank_shpiren;
	}

	public void setRank_shpiren(Integer rank_shpiren) {
		this.rank_shpiren = rank_shpiren;
	}
	

	public String getRank_bohui() {
		return rank_bohui;
	}

	public void setRank_bohui(String rank_bohui) {
		this.rank_bohui = rank_bohui;
	}

	public Staff getStaff() {
		return this.staff;
	}

	public void setStaff(Staff staff) {
		this.staff = staff;
	}

}